fix Procfile
move logic in to a service object and broadcast an event
fix flash, add class method for service object