fixed bug in spatial execution and starting making changes for cloud execution