add flattr
make sure endpoint exists in createSession
sort out some require issues