implemented options parsing, they don't work yet though