spilt code into multiple files; generate respones dynamically