add procfile and refactor smoke test