magic stuff for injects/class params, new functions for folder and filehandling, furhter gallery repository functions