refactored start and stop to datainit()