adding file-brain and refactored server deploy script