implemented option storage and usage
finished business logic