move code into src