init and run in rack