fix terminal encoding problem. Added ability to use custom request and access urls. Minor bug fixes