fixes custom commands
adds inherit flag