created command buffer, changed gencommand to take file name