add procfile and fix bug