work on start/end partition detection