added option to check for admin rights