added mounting function
made more general for foreman