some preparation to run as package