reorganizing code in deploy folder