got rid of 'promise' param for platform methods
implemented Session#send