split code to own files
add rake dependency