pste.me api support now working, need to cleanup code