finished switch to rails and parser in lib