move helper code into send response controller
reorganize directories