refactorings

mainly moved place related stuff into its own file and object + some
other minor stuff
refactor cronjob
refactor