fixed required gems
better file handling