added parse functionality, still debugging