initial implementation of source loading