moved more hotfolder-related stuff into HotfolderManager