move code to the separate dir