move source to AppMonitor dir
add permission check