moving code to src