move resource module and add resource format description prototype