prepare for load functionality