Added autopublish switch for now
Added import files method to prepare for migration