started implementing patch loading