fixed rejection handling
restructured request flags
basic functionality, minor fixes