fixed bug where resource path is properly exported