modified modcmd to give the possibility for dynamic access (modcmd)