add free draw integration
added static functions for server side