initial version of loader script