added copy and fixed issue with PM commands